import request from '@/utils/request'

// 查询检查分类列表
export function listCommonCheckType(query) {
  return request({
    url: '/cases/checkType/list',
    method: 'get',
    params: query
  })
}

// 查询检查分类详细
export function getCommonCheckType(id) {
  return request({
    url: '/cases/checkType/' + id,
    method: 'get'
  })
}

// 新增检查分类
export function addCommonCheckType(data) {
  return request({
    url: '/cases/checkType',
    method: 'post',
    data: data
  })
}

// 修改检查分类
export function updateCommonCheckType(data) {
  return request({
    url: '/cases/checkType',
    method: 'put',
    data: data
  })
}

// 删除检查分类
export function delCommonCheckType(id) {
  return request({
    url: '/cases/checkType/' + id,
    method: 'delete'
  })
}
